package br.com.plurianual.util.dto;

import java.io.Serializable;
import java.math.BigInteger;

import br.com.plurianual.model.entity.AcssUsuario;

/**
 * Representa os dados de um usuario logado
 * 
 * @author ZT53
 *
 */
public class UserDataDTO implements Serializable{

	private static final long serialVersionUID = 613873753040619663L;
	
	public Integer id;
	public BigInteger cod;
	public String login;
	public String name;
	
	public UserDataDTO(){}

	/**
	 * 
	 * @param acssUsuario
	 */
	public UserDataDTO(AcssUsuario acssUsuario){
		this.id = acssUsuario.getIdUsuario();
		this.cod = acssUsuario.getCodUsuario();
		this.login = acssUsuario.getLogin();
		this.name = acssUsuario.getNomUsuario();
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the cod
	 */
	public BigInteger getCod() {
		return cod;
	}

	/**
	 * @param cod the cod to set
	 */
	public void setCod(BigInteger cod) {
		this.cod = cod;
	}

	/**
	 * @return the login
	 */
	public String getLogin() {
		return login;
	}

	/**
	 * @param login the login to set
	 */
	public void setLogin(String login) {
		this.login = login;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
}
	